# JFLAGS=-g
JFLAGS=
LEXER_DIR = ../lexer-test
GENERATED_DIR = ../generated

all: 
	cd ${GENERATED_DIR}; javacc ${LEXER_DIR}/lexer-test.jj; javac ${JFLAGS} LexerTest.java
	cd ${GENERATED_DIR}; java LexerTest < ${TESTFILE}

clean:
	cd ${GENERATED_DIR}; rm *.class; rm *.java

test: 
	cd ${GENERATED_DIR}; java LexerTest < ${TESTFILE}


